$OpenBSD: patch-w_keyboard_c,v 1.4 2017/02/01 10:09:58 kirby Exp $
--- src/w_keyboard.c.orig	Sun Jul 24 00:10:28 2016
+++ src/w_keyboard.c	Thu Dec 22 12:22:20 2016
@@ -17,8 +17,9 @@
  */
 
 #include <sys/types.h>
+#include <stdlib.h>
 #include <regex.h>
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
 #include <alloca.h>
 #endif
 #include <string.h>
